From 34ddb07b7544c882c4b48886a81d1850dca83679 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 23 Sep 2002 20:02:40 +0000 Subject: [PATCH] Set endianness before marching on. --- gpsbabel/psp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gpsbabel/psp.c b/gpsbabel/psp.c index 85b6a4898..4c59e66fc 100644 --- a/gpsbabel/psp.c +++ b/gpsbabel/psp.c @@ -73,6 +73,11 @@ psp_fread_double(FILE *fp) { unsigned char buf[8]; unsigned char sbuf[8]; + + if (!endianness_tested) { + test_endianness(); + } + psp_fread(buf, 1, 8, psp_file_in); if (i_am_little_endian) { return *(double *) buf; -- 2.30.2